From: Paul Eggert Date: Sat, 16 Apr 2011 20:32:18 +0000 (-0700) Subject: * insdel.c (make_gap_smaller): Define only if X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4111^2~20 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=95ee3a63012dd686212f28a48b25f5b925c001c6;p=emacs.git * insdel.c (make_gap_smaller): Define only if USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC. --- diff --git a/src/ChangeLog b/src/ChangeLog index ea5f5d8500d..6568baabb6e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-04-16 Paul Eggert + * insdel.c (make_gap_smaller): Define only if + USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC. + * keyboard.c (read_char): Make a var volatile so longjmp won't clobber it. diff --git a/src/insdel.c b/src/insdel.c index 82dce13af98..5ecb01c9538 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -442,6 +442,7 @@ make_gap_larger (EMACS_INT nbytes_added) Vinhibit_quit = tem; } +#if defined USE_MMAP_FOR_BUFFERS || defined REL_ALLOC || defined DOUG_LEA_MALLOC /* Make the gap NBYTES_REMOVED bytes shorter. */ @@ -501,6 +502,8 @@ make_gap_smaller (EMACS_INT nbytes_removed) Vinhibit_quit = tem; } +#endif /* USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC */ + void make_gap (EMACS_INT nbytes_added) {